package com.huawei.appgallery.downloadengine.impl;

import com.huawei.appgallery.foundation.storage.db.RecordBean;
import o.bny;

public class SplitDownloadThreadInfo extends RecordBean {
    private static final long DEFAULT_ID = -1;
    private static final Object LOCK = new Object();
    public static final String TABLE_NAME = "SplitDownloadThreadInfo";
    private static int taskIndex = bny.ॱ();
    private volatile boolean dynamicSplit = false;
    private volatile long end_ = 0;
    private volatile long finished_ = 0;
    private volatile long oneShotSizeDownloaded = 0;
    private volatile long oneShotStartTime = 0;
    private String rangeInfo = "";
    private long sessionId_ = DEFAULT_ID;
    private long splitId_ = DEFAULT_ID;
    private volatile long start_ = 0;
    private int threadIndexId_ = -1;

    public static int ˎ() {
        int i;
        synchronized (LOCK) {
            taskIndex++;
            if (taskIndex == Integer.MIN_VALUE) {
                taskIndex = bny.ॱ();
            }
            i = taskIndex;
        }
        return i;
    }

    public SplitDownloadThreadInfo(long j, long j2, long j3, long j4) {
        this.sessionId_ = j;
        this.splitId_ = j2;
        this.threadIndexId_ = ˎ();
        this.start_ = j3;
        this.end_ = j4;
    }

    public long ˋ() {
        return this.sessionId_;
    }

    public void ˎ(long j) {
        this.sessionId_ = j;
    }

    public long ˊ() {
        return this.splitId_;
    }

    public void ˏ(long j) {
        this.splitId_ = j;
    }

    public int ॱ() {
        return this.threadIndexId_;
    }

    public void ˊ(int i) {
        this.threadIndexId_ = i;
    }

    public long ʻ() {
        return this.start_;
    }

    public void ˋ(long j) {
        this.start_ = j;
    }

    public long ॱॱ() {
        return this.end_;
    }

    public void ॱ(long j) {
        this.end_ = j;
    }

    public long ʽ() {
        return this.finished_;
    }

    public void ˊ(long j) {
        this.finished_ = j;
    }

    public long ᐝ() {
        return this.oneShotStartTime;
    }

    public void ʽ(long j) {
        this.oneShotStartTime = j;
    }

    public long ʼ() {
        return this.oneShotSizeDownloaded;
    }

    public void ʻ(long j) {
        this.oneShotSizeDownloaded = j;
    }

    public boolean ॱˊ() {
        return this.dynamicSplit;
    }

    public void ˊ(boolean z) {
        this.dynamicSplit = z;
    }

    public String ͺ() {
        return this.rangeInfo;
    }

    public void ˏ(String str) {
        this.rangeInfo = str;
    }
}
